home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / source.exe / POSIX / SH / STD / H / IO.H < prev    next >
C/C++ Source or Header  |  1992-07-13  |  1KB  |  59 lines

  1. /* POSIX IO functions */
  2.  
  3. /*
  4.  * the incomplete type "struct stat"
  5.  * will get warnings from GCC,
  6.  * errors from Turbo C. Too bad.
  7.  */
  8.  
  9. /* include <unistd.h> to get this */
  10.  
  11. #if ! _IO_H
  12. #define    _IO_H    1
  13.  
  14. #include <unistd.h>
  15.  
  16. #if _ST                /* dLibs hack */
  17. #define    unlink    remove
  18. #endif
  19.  
  20. struct stat;            /* create global incompletely-typed structure */
  21.  
  22. int chdir ARGS ((const char *path));
  23. #ifndef sparc
  24. int umask ARGS ((int mode));
  25. #endif
  26.  
  27. int open ARGS ((const char *path, int flags, ... /*mode*/));
  28. int creat ARGS ((const char *path, int mode));
  29. int pipe ARGS ((int pv[2]));
  30. int close ARGS ((int fd));
  31.  
  32. int fcntl ARGS ((int fd, int cmd, int arg));
  33. int dup ARGS ((int fd));
  34. int dup2 ARGS ((int ofd, int nfd));
  35.  
  36. int link ARGS ((const char *opath, const char *npath));
  37. int unlink ARGS ((const char *path));
  38. int rename ARGS ((const char *opath, const char *npath));
  39. int mkdir ARGS ((const char *path, int mode));
  40.  
  41. long lseek ARGS ((int fd, long off, int how));
  42. int read ARGS ((int fd, char *buf, unsigned len));
  43. int write ARGS ((int fd, char *buf, unsigned len));
  44.  
  45. int access ARGS ((const char *path, int mode));
  46. int stat ARGS ((const char *path, struct stat *sp));
  47. int fstat ARGS ((int fd, struct stat *sp));
  48.  
  49. int chmod ARGS ((const char *path, int mode));
  50. int chown ARGS ((const char *path, int uid));
  51. int chgrp ARGS ((const char *path, int gid));
  52. int utime ARGS ((const char *path, long tv[2]));
  53.  
  54. #if _BSD || _V7
  55. int ioctl ARGS ((int fd, int cmd, void *argp)); /* BSD is "uns long cmd" */
  56. #endif
  57.  
  58. #endif
  59.